import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import AdminBook from '../views/admin/admin-ebook.vue'
import AdminCategory from '../views/admin/admin-category.vue'
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
  },
  {
    path: '/admin/book',
    name: 'AdminBook',
    component: AdminBook,
  },
  {
    path: '/admin/category',
    name: 'AdminCategory',
    component: AdminCategory,
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
})

export default router
